home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
bchelp10.zip
/
TI804.ASC
< prev
next >
Wrap
Text File
|
1991-09-17
|
707b
|
67 lines
PRODUCT : Turbo C++ NUMBER : 804
VERSION : All
OS : DOS
DATE : September 17, 1991 PAGE : 1/1
TITLE : Spawning a batch (.bat) file
To spawn a batch file, you must spawn the command processor with
the batch file as an argument. For example:
spawnl(P_WAIT, "c:\\command.com",
"c:\\command.com","/c", "file.bat", NULL);
This example will spawn command.com assuming it is located in the
root directory of drive C and then tell command.com to execute a
batch file called file.bat!